<template>
  <div
    class="com-main"
    :style="{
      backgroundColor: $store.state.isNightMode
        ? $store.state.mainNightColor
        : $store.state.mainDayColor,
    }"
  >
    <slot name="main"></slot>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.com-main {
  height: calc(100vh - 60px);
  & > div {
    height: 100%;
  }
}
</style>